# -*- coding: utf-8 -*-
# @Time : 2018/12/31 20:40
# @Author : Administrator
# @File : GetIndex.py
# @Project : 4.Python
# @title : 利用locust测试首页
from locust import HttpLocust,TaskSet,task

class UserBehavior(TaskSet):
    @task
    def getIndex(self):
        self.client.get('/')

class WebSite(HttpLocust):
    task_set = UserBehavior
    min_wait = 3000
    max_wait = 6000